package com.hqd.ch03.v42.aop.support;

import com.hqd.ch03.v42.aop.ClassFilter;
import com.hqd.ch03.v42.aop.MethodMatcher;
import com.hqd.ch03.v42.aop.Pointcut;

/**
 * 静态匹配抽象类
 */
public abstract class StaticMethodMatcherPointcut extends StaticMethodMatcher implements Pointcut {
    private ClassFilter classFilter = ClassFilter.TRUE;

    @Override
    public ClassFilter getClassFilter() {
        return this.classFilter;
    }

    public void setClassFilter(ClassFilter classFilter) {
        this.classFilter = classFilter;
    }

    @Override
    public MethodMatcher getMethodMatcher() {
        return this;
    }
}
